package com.ys.service.Impl;

import com.ys.mapper.CompanyMapper;
import com.ys.pojo.Company;
import com.ys.service.CompanyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("CompanyService")
public class CompanyServiceImpl implements CompanyService {
    @Resource
    private CompanyMapper companyMapper;
    @Override
    public List<Company> select() {
        return companyMapper.select();
    }

    @Override
    public boolean addsinsert(Company company) {
        return companyMapper.insert(company);
    }

    @Override
    public boolean updsupdate(Company company) {
        return companyMapper.update(company);
    }

}
